const express = require('express')
const router = express.Router()
const {createTagController,getTagsController,deleteTagsController}=require('../controller/tag')
const authMiddleware = require('../middleware/index/authMiddleware')


/* 
标签路由地址和控制器映射
*/
router.post('/', authMiddleware, createTagController)  //获标签列表
router.get('/', getTagsController)  //获取标签列表
router.delete('/:tag', authMiddleware, deleteTagsController)  //获取标签列表

// 导出路由模块
module.exports = router